/* 用来存放寄存器映射相关的代码 */


#define GPIOF_BASE     ((unsigned int)0x40021400) /* <!-- GPIOF 外设基地址*/
#define RCC_BASE       ((unsigned int)0x40023800) /* <!-- RCC 外设基地址*/

/* 寄存器地址 */
#define RCC_AHB1ENR    (*(unsigned int *)(RCC_BASE   + 0x30))     
#define GPIOF_MODER    (*(unsigned int *)(GPIOF_BASE + 0x00))
#define GPIOF_OTYPER   (*(unsigned int *)(GPIOF_BASE + 0x04))
#define GPIOF_PUPDR    (*(unsigned int *)(GPIOF_BASE + 0x0C))
#define GPIOF_BSRR     (*(unsigned int *)(GPIOF_BASE + 0x18))
#define GPIOF_ODR      (*(unsigned int *)(GPIOF_BASE + 0x14))
